<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<jsp:include page="../include/_dwz_form_head.jsp" />
<form rel="pagerForm" onsubmit="return divSearch(this, '${categoryStatus ==0?'accountDetail':'accountDetailH'}');" action="systemsetting/Category_buweiList?categoryStatus=${categoryStatus}" method="post">
</form>
<div class="accordion"  fillSpace="${categoryStatus ==0?'accountDetail':'accountDetailH'}">
<c:forEach items="${list_b_T_Ufp_Category}" var="b_T_Ufp_Category" varStatus="s">
<c:if test="${b_T_Ufp_Category.pid=='0'}">
<c:set var="pid"  value="${b_T_Ufp_Category.uuid}"/>
	<div class="accordionHeader" >
			<h2>
				<a href="systemsetting/Category_categoryDetail?b_T_Ufp_Category.uuid=${b_T_Ufp_Category.uuid}&categoryStatus=${categoryStatus}&flag=shanchu" target="dialog" rel="tab222" width="250" height="300" >${b_T_Ufp_Category.categoryName}</a>
				<%-- <a title="删除" target="ajaxTodo" href="systemsetting/Category_categoryDelete?checkIds=${b_T_Ufp_Category.uuid}&b_T_Ufp_Category.categoryStatus=${categoryStatus}" >${b_T_Ufp_Category.categoryName}</a> --%>
			</h2>
		</div>
	<div class="accordionContent">
		<table class="table" width="108%">
			<thead>
				<tr>
					<th width="2%"><input type="checkbox" name="checkIds"
						group="checkIds${s.index}" class="checkboxCtrl2"></th>
					<th width="9%"  >
						类别名称</th>
					<th width="9%" >
						允许修改单价</th>
					<th width="5%">操作</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${list_b_T_Ufp_Category}" var="b_T_Ufp_CategoryItem" varStatus="v">
					<c:if test="${b_T_Ufp_CategoryItem.pid==pid}">
						<tr target="sid_user" rel="1">
						<td><input name="checkIds" value="${b_T_Ufp_CategoryItem.uuid}"
										type="checkbox" zgroup="checkIds${s.index}">
									</td>
						<td title="${b_T_Ufp_CategoryItem.categoryName}">
							<c:choose>
								<c:when test="${categoryStatus ==0}">
								<a href="systemsetting/Project_projectList?flag=${b_T_Ufp_CategoryItem.categoryName },${b_T_Ufp_CategoryItem.uuid},${b_T_Ufp_CategoryItem.status},${b_T_Ufp_CategoryItem.categoryStatus}" target="ajax" rel="projectDetail">
								</c:when>
								<c:otherwise>
									<a href="systemsetting/Project_projectList?flag=${b_T_Ufp_CategoryItem.categoryName},${b_T_Ufp_CategoryItem.uuid},${b_T_Ufp_CategoryItem.status},${b_T_Ufp_CategoryItem.categoryStatus}" target="ajax" rel="projectDetailH">
								</c:otherwise>
							</c:choose> 
							<font color="blue"> ${b_T_Ufp_CategoryItem.categoryName}</font> 
							</a></td>
							<td>
								<input type="checkbox" name="b_T_Ufp_Category.status" id="status" ${b_T_Ufp_CategoryItem.status=='1'?"checked":""}  disabled="disabled" />
							</td>
							<td>
								<a title="编辑" target="dialog" rel="tab222" width="250" height="300" href="systemsetting/Category_categoryDetail?b_T_Ufp_Category.uuid=${b_T_Ufp_CategoryItem.uuid}&flag=0&categoryStatus=${categoryStatus}" class="btnEdit">编辑</a>
							</td>
						</tr>
					</c:if>
				</c:forEach>
					</tbody>
				</table>
		</div>
	</c:if>
	</c:forEach>
	</div>
